
CROSS_COMPILE ?= arm-ca7-linux-uclibcgnueabihf-
CC := $(CROSS_COMPILE)g++
LD := $(CROSS_COMPILE)ld

CFLAGS = -g -O2 -Wall 
CFLAGS += -I/home/xy/ffmpeg_build/include
LDFLAGS = -lavformat -lavcodec -lavfilter -lavutil -lswresample -lm -lpthread
LDFLAGS += -L/home/xy/ffmpeg_build/lib

SRC = *.cpp
TARGET = filterDemo

all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
	cp filterDemo ~/ffmpeg_mount/

clean:
	rm -f $(TARGET) *.o

.PHONY: all clean


